import Vue  from 'vue'
import Vuex from 'vuex'
import persistedState from 'vuex-persistedstate'

import state 		 		from './state.js'
import mutations 		from './mutations.js'
import getters 	 		from './getters.js'

Vue.use(Vuex)
Vue.config.devtools = true

const store = new Vuex.Store({
	plugins: [
	  persistedState({ storage: window.sessionStorage })
	],
	state:state,
	mutations:mutations,
	getters:getters
})
export default store